Skip to main content
Version: 1.4.0

print ast-typed

SYNOPSIS

ligo print ast-typed SOURCE_FILE

DESCRIPTION

This sub-command prints the source file in the AST typed stage. Internally, it uses the build system to type the contract, but the contract is not combined with imported modules.

FLAGS

--display-format FORMAT the format that will be used by the CLI. Available formats are 'dev', 'json', and 'human-readable' (default). When human-readable lacks details (we are still tweaking it), please contact us and use another format in the meanwhile. (alias: --format)

--library LIBS A comma-separated list of paths to directories where to search for files to be included by the preprocessor (alias: -l)

--no-color disable coloring in CLI output

--project-root PATH The path to root of the project.

--self-pass apply the self pass

--skip-analytics Avoid ligo analytics publication. Configurable with environment variable LIGO_SKIP_ANALYTICS too

--syntax SYNTAX the syntax that will be used. Currently supported syntaxes are "cameligo" and "jsligo". By default, the syntax is guessed from the extension (.mligo and .jsligo respectively). (alias: -s)

--test force testing mode.

--type-doc Translate JsLIGO program into TypeScript for generating documentation.

--warn-infinite-loop warn about infinite loop

--warn-unused-rec warn about unused recursion in a recursive function

-p PROTOCOL choose protocol's types/values pre-loaded into the LIGO environment (atlas). By default, the current protocol (atlas) will be used (alias: --protocol)

-help print this help text and exit (alias: -?)